﻿using System;
using System.Collections.Generic;
using System.Xml.Linq;

namespace RSSNewsGrabberModule.Mapping
{
    public class FieldsMapping
    {
        public LinkedList<string> RootNodes { get; private set; }

        public string HeaderName { get; private set; }

        public string ItemName { get; private set; }

        public IDictionary<string, FieldInfo> Header { get; private set; }

        public IDictionary<string, FieldInfo> Item { get; private set; }
        
        public FieldsMapping(LinkedList<string> root, string headerName, string itemName)
        {
            ItemName = itemName;
            HeaderName = headerName;
            RootNodes = root;
            Header = new Dictionary<string, FieldInfo>();
            Item = new Dictionary<string, FieldInfo>();
        }

        
    }
}
